<template>
  <div class="mage">
    <div class="main" v-for="(item,index) in slist" :key=index>
    <img :src="pic" alt="">
    <div class="show">
        <h3>{{item.name}}</h3>
        <span>{{item.mtWmPoiId}}</span>
        <span>{{item.wmPoiScore}}</span>
    </div>
    </div>
  </div>
</template>

<script>
import {shoplist} from '../../utils/api'
let pic = 'https://img2.baidu.com/it/u=1801503838,1045656518&fm=253&app=138&size=w931&n=0&f=JPEG&fmt=auto?sec=1666112400&t=87b28b4d94da642826e5b34aff93c5dd'
export default {
    data(){
        return{
            pic,
            slist:[]
        }
    },
    mounted(){
         shoplist().then((res)=>{
        this.slist = res.data.list
    })
    }
}
</script>

<style lang="scss" scoped>
    .mage{
        width: 100%;
        height: 100vw;
    }
    .mage .main{
        display: flex;
        margin-bottom: 2vw;
        // background: yellow;
        // padding: 20vw 0 0 7vw;
    }
    .mage img{
        width: 30vw;
        height: 35vw;
        margin-right: 2vw;
    }
    .mage .show{
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 60vw;
        height: 35vw;
    }
</style>